import Layout from '@/layout'

export default {
    // 一级路由的地址
    path: '/questions',
    // 是用布局作为组件
    component: Layout,
    // 【名称，非常的重要，有可能是作为权限的筛选标识】
    name: 'questions',
    meta: { title: '题库管理', icon: 'el-icon-document' },
    children: [{
            path: '',
            component: () =>
                import ('@/views/questions/list'),
            name: 'list',
            meta: {
                title: '基础题库',
                icon: 'table'
            }
        },
        {
            path: 'choice',
            component: () =>
                import ('@/views/questions/choice'),
            name: 'choice',
            meta: {
                title: '精选题库',
                icon: 'table'
            }
        },
        {
            path: 'new',
            component: () =>
                import ('@/views/questions/new'),
            name: 'new',
            meta: {
                title: '试题录入',
                icon: 'table'
            }
        },
        {
            path: 'randoms',
            component: () =>
                import ('@/views/questions/randoms'),
            name: 'randoms',
            meta: {
                title: '组题列表',
                icon: 'table'
            }
        }
    ]
}